package com.lovo.cloud.service;

import com.lovo.cloud.model.dos.OrderDO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lovo.cloud.model.dto.OrderDTO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author luo
 * @since 2020-12-04
 */
public interface OrderService extends IService<OrderDO> {

    /**
     * 保存订单
     * @param orderDO
     * @return
     */
    boolean saveOrder(OrderDO orderDO);

    /**
     * 根据订单编号查找订单
     * @param orderNum
     * @return
     */
    OrderDO getOrderByNum(String orderNum);

    boolean updateTag(String orderNum,Boolean type);

}
